package calculator.model;

import java.util.List;


// Exception which holds a list of errors mainly occurring when processing forms.
public class FormException extends Exception {
    private List<String> errors;
    
    public FormException(List<String> errors) {
        super("Wystąpiły następujące błędy:");
        this.errors = errors;
    }
    
    public List<String> getErrors() {
        return errors;
    }

}
